cmake_minimum_required(VERSION 3.16)
project(UniverseRoom)

set(CMAKE_CXX_STANDARD 17)
link_directories(/usr/local/lib/)
link_libraries(libhiredis.a)
include_directories(/usr/local/include)
add_executable(UniverseRoom main.cpp Player.cc Player.hh
        Room.cc Room.hh Space.cc Space.hh Console.h Reactor.hh
        UniverseDatagram.hh UniverseDatagram.cc RedisUtils.cpp
        RedisUtils.h Reactor.cc
        state/PlayerState.cpp state/PlayerState.h
        state/OfflineState.cpp state/OfflineState.h
        state/FirstLoginState.cpp state/FirstLoginState.h
        state/OnlineState.cpp state/OnlineState.h
        state/InRoomState.cpp state/InRoomState.h Utils.cpp Utils.h RedisAsyncUtils.cpp RedisAsyncUtils.h Entity.cpp Entity.h Slave.cpp Slave.h state/SlaveState.cpp state/SlaveState.h)